{% load i18n %}
{% load static %}

          {% for build in build_qs %}
          <li class="module-item col-span">
            <div id="build-{{ build.id }}">
                <a href="{{ build.get_absolute_url }}">{% if build.is_stale %}<span class="icon-warning" title="{% trans 'This build is still waiting to be built' %}"></span>{% endif %}<span id="build-state">{% if build.state != 'finished' %}{{ build.get_state_display }} {% else %} {% if build.success %}{% trans "Passed" %}{% else %}{% trans "Failed" %}{% endif %}{% endif %}</span>
                  <img src="{% static 'core/img/loader.gif' %}" class="build-loading hide">
                <span class="quiet">
                  {% if build.is_external %}
                    {% blocktrans trimmed with build.external_version_name as external_version_name %}
                      {{ external_version_name }}
                    {% endblocktrans %}
                  {% endif %}

                  {% blocktrans trimmed with build.get_version_slug as slug and build.type as type %}
                    version {{ slug }} ({{ type }})
                  {% endblocktrans %}
                </span>
                <span class="quiet right">
                  {% blocktrans trimmed with build.date|timesince as date %}
                    {{ date }} ago
                  {% endblocktrans %}
                </span>
              </a>
            </div>
            </li>
          {% empty %}
            <li class="module-item quiet">{% trans "No builds found" %}</li>
          {% endfor %}
